<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.min.js"></script>
</head>
<body>
    <div id="app">
        app
        <hr>
        {{age}}
        <hr>
        <p v-text="age"></p>
        <hr>
        <div v-html="age"></div>
        <hr>
        <div v-html="rich"></div>
        <hr>
        <div v-text="rich"></div>
    </div>
    <script>
        const app = new Vue({
            el:"#app",
            data:{
                age:3,
                rich:"<h1>红楼梦</h1><p>曹<i>雪芹</i></p>"
            },
        })
    </script>
</body>
</html>